<?php

use Illuminate\Database\Seeder;

class UsersTableSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        for($i=0;$i<30; $i++) {
            DB::table('users')->insert([
                'name' => str_random(10),
                'email' => str_random(10).'@gmail.com',
                'password' => md5('123456'),
                'phone' => mt_rand(100000,999999999),
                'session_id' => str_random(10),
                'code' => rand(1000,9999),
                'addtime' => time(),
            ]);
        }
    }
}
